<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css"/>
	<style type="text/css"> 
		body{
			background-image:url(static/img/bg.png);
		}
	
	</style>
</head>

<body class="body">
	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">凯盛项目管理系统</a>
			</div>
		</div>
	</div>
	
	
	<div class="container" style="margin-top:60px">
	  <div class="row">
	  <div class="span3">
			<div style="padding: 8px 0;" >
				<ul class="nav nav-list">
				  <li class="nav-header"  style="font-size:14px">${sessionScope.userProject.project.name }</li>
				  <li class="divider"></li>
				  <li><a href="project.jspx"><i class="icon-home"></i>最新动态</a></li>
				  <li>
					<a href="goal.jspx"><i class="icon-flag"></i>目标</a>
				  </li>
				  <li ><a href="document.jspx"><i class="icon-white icon-folder-open"></i>资料库</a></li>
				  <li><a href="files.jspx"><i class="icon-file"></i>文件共享</a></li>
				  <li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
				  <li class="active"><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
				  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
				  <li><a href="set.jspx"><i class="icon-cog"></i>项目设置</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			<form action="idea.jspx?m=edit&id=${idea.id }" id = "myform" method = "post">
        <fieldset>
          <legend>编辑想法</legend>
          <div class="control-group">
            <label class="control-label" for="input01">标题</label>
            <div class="controls">
              <input class="span9" id="input01" x-webkit-speech="undefined" type="text" name = "title" value = "${idea.title }">
            </div>
          </div>
		  <div class="control-group">
            <label class="control-label" for="input01">内容</label>
            <div class="controls">
              <textarea  id="" class="span9" rows="15" name = "content" >${idea.content }</textarea>
            </div>
          </div>

          <div class="form-actions">
            <button type="button" class="btn btn-primary" id = "btnSave">保存</button>
            <button class="btn" onclick="location.back()">返回</button>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>
	
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type = "text/javascript">
		$(document).ready(function(){
			$("#btnSave").click(function(){
				$("#myform").submit();
			});
		});
	
	</script>
	

</body>
</html>